Optimal. Leaf size=73 \[ \frac {3 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{22 \sqrt {31}}-\frac {1}{44} \log \left (3-x+2 x^2\right )+\frac {1}{44} \log \left (2+3 x+5 x^2\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 73, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 5, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {994, 648, 632,
210, 642} \begin {gather*} \frac {3 \text {ArcTan}\left (\frac {1-4 x}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \text {ArcTan}\left (\frac {10 x+3}{\sqrt {31}}\right )}{22 \sqrt {31}}-\frac {1}{44} \log \left (2 x^2-x+3\right )+\frac {1}{44} \log \left (5 x^2+3 x+2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 632
Rule 642
Rule 648
Rule 994
Rubi steps
\begin {align*} \int \frac {1}{\left (3-x+2 x^2\right ) \left (2+3 x+5 x^2\right )} \, dx &=\frac {1}{242} \int \frac {-11-22 x}{3-x+2 x^2} \, dx+\frac {1}{242} \int \frac {88+55 x}{2+3 x+5 x^2} \, dx\\ &=-\left (\frac {1}{44} \int \frac {-1+4 x}{3-x+2 x^2} \, dx\right )+\frac {1}{44} \int \frac {3+10 x}{2+3 x+5 x^2} \, dx-\frac {3}{44} \int \frac {1}{3-x+2 x^2} \, dx+\frac {13}{44} \int \frac {1}{2+3 x+5 x^2} \, dx\\ &=-\frac {1}{44} \log \left (3-x+2 x^2\right )+\frac {1}{44} \log \left (2+3 x+5 x^2\right )+\frac {3}{22} \text {Subst}\left (\int \frac {1}{-23-x^2} \, dx,x,-1+4 x\right )-\frac {13}{22} \text {Subst}\left (\int \frac {1}{-31-x^2} \, dx,x,3+10 x\right )\\ &=\frac {3 \tan ^{-1}\left (\frac {1-4 x}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{22 \sqrt {31}}-\frac {1}{44} \log \left (3-x+2 x^2\right )+\frac {1}{44} \log \left (2+3 x+5 x^2\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 73, normalized size = 1.00 \begin {gather*} -\frac {3 \tan ^{-1}\left (\frac {-1+4 x}{\sqrt {23}}\right )}{22 \sqrt {23}}+\frac {13 \tan ^{-1}\left (\frac {3+10 x}{\sqrt {31}}\right )}{22 \sqrt {31}}-\frac {1}{44} \log \left (3-x+2 x^2\right )+\frac {1}{44} \log \left (2+3 x+5 x^2\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 60, normalized size = 0.82
method | result | size |
default | \(-\frac {\ln \left (2 x^{2}-x +3\right )}{44}-\frac {3 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{506}+\frac {\ln \left (5 x^{2}+3 x +2\right )}{44}+\frac {13 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{682}\) | \(60\) |
risch | \(\frac {13 \arctan \left (\frac {\left (3+10 x \right ) \sqrt {31}}{31}\right ) \sqrt {31}}{682}+\frac {\ln \left (100 x^{2}+60 x +40\right )}{44}-\frac {\ln \left (16 x^{2}-8 x +24\right )}{44}-\frac {3 \sqrt {23}\, \arctan \left (\frac {\left (4 x -1\right ) \sqrt {23}}{23}\right )}{506}\) | \(60\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.53, size = 59, normalized size = 0.81 \begin {gather*} \frac {13}{682} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {3}{506} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {1}{44} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{44} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 3.07, size = 59, normalized size = 0.81 \begin {gather*} \frac {13}{682} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {3}{506} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {1}{44} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{44} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.10, size = 83, normalized size = 1.14 \begin {gather*} - \frac {\log {\left (x^{2} - \frac {x}{2} + \frac {3}{2} \right )}}{44} + \frac {\log {\left (x^{2} + \frac {3 x}{5} + \frac {2}{5} \right )}}{44} - \frac {3 \sqrt {23} \operatorname {atan}{\left (\frac {4 \sqrt {23} x}{23} - \frac {\sqrt {23}}{23} \right )}}{506} + \frac {13 \sqrt {31} \operatorname {atan}{\left (\frac {10 \sqrt {31} x}{31} + \frac {3 \sqrt {31}}{31} \right )}}{682} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 2.47, size = 59, normalized size = 0.81 \begin {gather*} \frac {13}{682} \, \sqrt {31} \arctan \left (\frac {1}{31} \, \sqrt {31} {\left (10 \, x + 3\right )}\right ) - \frac {3}{506} \, \sqrt {23} \arctan \left (\frac {1}{23} \, \sqrt {23} {\left (4 \, x - 1\right )}\right ) + \frac {1}{44} \, \log \left (5 \, x^{2} + 3 \, x + 2\right ) - \frac {1}{44} \, \log \left (2 \, x^{2} - x + 3\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.19, size = 79, normalized size = 1.08 \begin {gather*} \ln \left (x-\frac {1}{4}-\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (-\frac {1}{44}+\frac {\sqrt {23}\,3{}\mathrm {i}}{1012}\right )-\ln \left (x-\frac {1}{4}+\frac {\sqrt {23}\,1{}\mathrm {i}}{4}\right )\,\left (\frac {1}{44}+\frac {\sqrt {23}\,3{}\mathrm {i}}{1012}\right )-\ln \left (x+\frac {3}{10}-\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (-\frac {1}{44}+\frac {\sqrt {31}\,13{}\mathrm {i}}{1364}\right )+\ln \left (x+\frac {3}{10}+\frac {\sqrt {31}\,1{}\mathrm {i}}{10}\right )\,\left (\frac {1}{44}+\frac {\sqrt {31}\,13{}\mathrm {i}}{1364}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________